home *** CD-ROM | disk | FTP | other *** search
- on closeLesson
- global isLesson
- if isLesson then
- forget(window "Lesson")
- updateStage()
- set isLesson to 0
- delay(60)
- end if
- end
-
- on openLesson name
- global isLesson
- updateStage()
- closeLesson()
- set isLesson to 1
- set horzOrigin to the stageLeft + 120
- set vertOrigin to the stageTop
- set LessonRect to rect(horzOrigin, vertOrigin, horzOrigin + 520, vertOrigin + 446)
- if name = "Plot" then
- set LessonRect to rect(the stageLeft, the stageTop, the stageRight, the stageBottom)
- end if
- set Lesson to window "Lesson"
- set the rect of Lesson to LessonRect
- set the fileName of Lesson to name
- set the windowType of Lesson to 2
- set the titleVisible of Lesson to 0
- open(Lesson)
- end
-
- on hideLesson
- global isLesson
- if isLesson then
- moveToBack(window "Lesson")
- end if
- end
-
- on showLesson
- global isLesson
- if isLesson then
- moveToFront(window "Lesson")
- end if
- end
-